from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import SimpleRouter

from books.views import BookListView, BookImportView, BookUpdateView, test

router = SimpleRouter()
router.register('list', BookListView, basename='list')
router.register('upload', BookImportView, basename='upload')
router.register('update', BookUpdateView, basename='update')
urlpatterns =[
    path('test/', test),

]
urlpatterns += router.urls
